class SteelOutDay {
  final int sourceId;
  final int furnaceNo;
  final double steelOut;
  final int rate;
  final String tjTime;
  final double gasAccuTotal;
  final double o2AccuTotal;
  final double n2AccuTotal;
  final double airAccuTotal;
  final double steamAccuTotal;

  SteelOutDay({
    required this.sourceId,
    required this.furnaceNo,
    required this.steelOut,
    required this.rate,
    required this.tjTime,
    required this.gasAccuTotal,
    required this.o2AccuTotal,
    required this.n2AccuTotal,
    required this.airAccuTotal,
    required this.steamAccuTotal,
  });

  factory SteelOutDay.fromJson(Map<String, dynamic> json) {
    return SteelOutDay(
      sourceId: json['sourceId'] as int,
      furnaceNo: json['furnaceNo'] as int,
      steelOut: json['steelOut'] as double,
      rate: json['rate'] as int,
      tjTime: json['tjTime'] as String,
      gasAccuTotal: json['gasAccuTotal'] as double,
      o2AccuTotal: json['o2AccuTotal'] as double,
      n2AccuTotal: json['n2AccuTotal'] as double,
      airAccuTotal: json['airAccuTotal'] as double,
      steamAccuTotal: json['steamAccuTotal'] as double,
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'sourceId': sourceId,
      'furnaceNo': furnaceNo,
      'steelOut': steelOut,
      'rate': rate,
      'tjTime': tjTime,
      'gasAccuTotal': gasAccuTotal,
      'o2AccuTotal': o2AccuTotal,
      'n2AccuTotal': n2AccuTotal,
      'airAccuTotal': airAccuTotal,
      'steamAccuTotal': steamAccuTotal,
    };
  }
}
